<?php

class Ext_Application_Resource_Smarty extends Zend_Application_Resource_ResourceAbstract
{
    public function init()
    {
        $options = $this->getOptions();
        if ( isset( $options['root'] ) ) {
            // Smarty factory.
            Ext_Smarty::setRootDir( $options['root'] );
        }
        return Ext_Smarty::getInstance();
    }
}
